'use strict';

 // 获得待审核的测试题目
exports.main = async (event, context) => {
  const db = uniCloud.database();
  const dbCmd = db.command // 取指令
  let res = await db.collection('collection_subject').aggregate()
  	.match({
  		isSubject: false
  	})
  	.end()
  
  //返回数据给客户端
  return {
  	code: '1',
  	msg: 'success',
  	data: res.data
  }
};
